package data;

public class ArithmeticOperators {
	
	public static double Evaluate(double a, double b, ArithmeticOperator o)
	{
		switch(o)
		{
		case Addition:
			return a+b;
		case Subtraction:
			return a-b;
		case Division:
			return a/b;
		case Multiplication:
			return a*b;
		default:
			break;
		}
		
		return 0;
	}
	
	public static double Evaluate(int a, int b, ArithmeticOperator o)
	{
		return ArithmeticOperators.Evaluate((double)a, (double)b, o);
	}

}
